import Vue from 'vue';
import Router from 'vue-router';
const path = require('path');


Vue.use(Router);
export default new Router({
  base: path.resolve(__dirname),
  app: "/",
  scrollBehavior: () => ({ y: 0 }),
  routes: [
    {
      path: '/',
      name: 'index',
      desc: "起始页",
      component: require('./index.vue'),
      meta: {
        title: '活动页面介绍页面'
      }
    },
    {
      //首页
      path: '/home',
      name: 'home',
      component: resolve => require(['@/router/home'], resolve),
      meta: {
        title: '首页'
      }
    },
    {
      // 登录
      path: '/login',
      name: 'login',
      component: resolve => require(['@/router/login'], resolve),
      meta: {
        title: '登录'
      }
    },
    {
      // 产品列表
      path: '/productlist',
      name: 'productlist',
      component: resolve => require(['@/router/productlist'], resolve),
      meta: {
        title: '产品列表'
      }
    },
    {
      // 产品详情
      path: '/productdetail',
      name: 'productdetail',
      component: resolve => require(['@/router/productdetail'], resolve),
      meta: {
        title: '产品详情'
      }
    },
    {
      // 个人中心
      path: '/personalcenter',
      name: 'personalcenter',
      component: resolve => require(['@/router/personalcenter'], resolve),
      meta: {
        title: '个人中心'
      }
    },
    
  ]
})







































